#include <stdio.h>

int main(void)
{
   int pid, ppid, status;

   pid=getpid();
   ppid=getppid();
   printf("\n\n FATHER PARAM: pid=%i  ppid=%i \n", pid,ppid);

   if(fork()==0) execl("son.out","son", NULL);
   system("ps f");
   printf("inside father process: waiting for son to return...\n");
   wait(&status);
   return 0;
}   
